/* eslint-disable */ 
const Service = require('egg').Service;

class MenuService extends Service {
    async index() {
        const { app } = this;
        return await new Promise((res) => {
            setTimeout(() => {
                res({
                    menus: [
                        {
                            name: "title1",
                            sub: ["sub1", "sub2", "sub3", "sub4"],
                        },
                        {
                            name: "title2",
                            sub: ["title2sub1", "title2sub2", "title2sub3", "title2sub4"],
                        },
                        {
                            name: "title3",
                            sub: ["title3sub1", "title3sub2", "title3sub3", "title3sub4"],
                        },
                        {
                            name: "title4",
                            sub: ["title4sub1", "title4sub2", "title4sub3", "title4sub4"],
                        },
                        {
                            name: "title5",
                            sub: ["title5sub1", "title5sub2", "title5sub3", "title5sub4"],
                        },
                        {
                            name: "title6",
                            sub: ["title6sub1", "title6sub2", "title6sub3", "title6sub4"],
                        },
                    ],
                });
            }, 1000);
        });
    }
}

module.exports = MenuService;